use crate::utils::MessageItem;
use tauri::Emitter;

pub fn data_task(message_item: MessageItem, app_handle: tauri::AppHandle) {
    app_handle
        .emit(&message_item.name, message_item.value)
        .expect("Failed to emit to frontend")
}
